import request from '@/utils/request'

export default {
  queryPage(data) {
    return request({
      url: '/energy-carbon/ecp-admin/optimizationSuggestion/queryPage',
      method: 'post',
      data
    })
  },
  add(data) {
    return request({
      url: '/energy-carbon/ecp-admin/optimizationSuggestion/add',
      method: 'post',
      data
    })
  },
  update(data) {
    return request({
      url: '/energy-carbon/ecp-admin/optimizationSuggestion/update',
      method: 'post',
      data
    })
  },
  getContent(params) {
    return request({
      url: '/energy-carbon/ecp-admin/optimizationSuggestion/getcontent',
      method: 'GET',
      params
    })
  },
  deleteById(data) {
    return request({
      url: '/energy-carbon/ecp-admin/optimizationSuggestion/deleteById',
      method: 'post',
      data
    })
  },
  batchDelete(data) {
    return request({
      url: '/energy-carbon/ecp-admin/optimizationSuggestion/batchDelete',
      method: 'post',
      data
    })
  }

}
